<?php

class Blog_Form_Create extends Form
{
	public function init()
	{
		$this -> addChild('text', 'title', array(
			'label' => 'Title',
			'validators' => array('required')
		));

		$this -> addChild('textarea', 'content', array(
			'label' => 'Content',
			'validators' => array('required')
		));

		$this -> addChild('group', '_buttons');

		$this -> _buttons -> addChild('submit', '_submit', array('label' => 'Create Blog')) -> addChild('cancel', '_cancel', array('label' => 'Cancel'));
	}

}
